// vite.config.js
import { resolve } from "node:path";
import vue from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import dayjs from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/dayjs/dayjs.min.js";

// package.json
var package_default = {
  name: "portal-huaxinzhi",
  private: true,
  version: "0.0.0",
  type: "module",
  scripts: {
    bootstrao: "yarn",
    dev: "vite",
    build: "vite build",
    preview: "vite preview"
  },
  dependencies: {
    "amfe-flexible": "^2.2.1",
    autoprefixer: "^10.4.16",
    axios: "^1.6.3",
    dayjs: "^1.11.10",
    "element-plus": "^2.4.4",
    pinia: "^2.1.7",
    "postcss-pxtorem": "^6.0.0",
    "vite-plugin-html": "^3.2.1",
    vue: "^3.3.11",
    "vue-i18n": "^9.4.1",
    "vue-router": "^4.2.5"
  },
  devDependencies: {
    "@vitejs/plugin-vue": "^4.5.2",
    sass: "^1.69.5",
    vite: "^5.0.8"
  }
};

// vite.config.js
import { loadEnv } from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/vite/dist/node/index.js";
import autoprefixer from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/autoprefixer/lib/autoprefixer.js";
import { createHtmlPlugin } from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/vite-plugin-html/dist/index.mjs";
import postCssPxToRem from "file:///E:/desktop/huaxinzhi-portal/portal/node_modules/postcss-pxtorem/index.js";
var __vite_injected_original_dirname = "E:\\desktop\\huaxinzhi-portal\\portal";
var CWD = process.cwd();
var getViteEnv = (mode, target) => {
  return loadEnv(mode, process.cwd())[target];
};
var __APP_INFO__ = {
  pkg: package_default,
  lastBuildTime: dayjs().format("YYYY-MM-DD HH:mm:ss")
};
var vite_config_default = ({ command, mode }) => {
  const { VITE_BASE_URL, VITE_DROP_CONSOLE } = loadEnv(mode, CWD);
  return {
    base: VITE_BASE_URL,
    define: {
      __APP_INFO__: JSON.stringify(__APP_INFO__)
    },
    // 环境变量
    resolve: {
      alias: [
        {
          find: "@",
          replacement: resolve(__vite_injected_original_dirname, "./src")
        }
      ]
    },
    plugins: [
      createHtmlPlugin({
        inject: {
          data: {
            title: getViteEnv(mode, "VITE_APP_TITLE")
          }
        }
      }),
      vue(),
      autoprefixer({
        overrideBrowserslist: [
          "Android 4.1",
          "iOS 7.1",
          "Chrome > 31",
          "ff > 31",
          "ie >= 8"
        ]
      })
    ],
    css: {
      postcss: {
        plugins: [
          postCssPxToRem({
            rootValue: 16,
            // 1rem的大小
            propList: ["*"]
            // 需要转换的属性，这里选择全部都进行转换
          })
        ]
      }
    },
    server: {
      host: "0.0.0.0",
      port: 9527,
      proxy: {}
    }
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiRTpcXFxcZGVza3RvcFxcXFxodWF4aW56aGktcG9ydGFsXFxcXHBvcnRhbFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxcZGVza3RvcFxcXFxodWF4aW56aGktcG9ydGFsXFxcXHBvcnRhbFxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovZGVza3RvcC9odWF4aW56aGktcG9ydGFsL3BvcnRhbC92aXRlLmNvbmZpZy5qc1wiO2ltcG9ydCB7IHJlc29sdmUgfSBmcm9tICdub2RlOnBhdGgnXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcbmltcG9ydCBkYXlqcyBmcm9tICdkYXlqcydcbmltcG9ydCBwa2cgZnJvbSAnLi9wYW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